package org.mall.modules.shoprecommond.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 商品推荐
 * @Author: jeecg-boot
 * @Date:   2019-12-30
 * @Version: V1.0
 */
@Data
@TableName("shop_recommond")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="shop_recommond对象", description="商品推荐")
public class ShopRecommond implements Comparable<ShopRecommond>{
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Integer id;
	/**shopId*/
	@Excel(name = "shopId", width = 15)
    @ApiModelProperty(value = "shopId")
	private String shopId;
	/**shopName*/
	@Excel(name = "shopName", width = 15)
    @ApiModelProperty(value = "shopName")
	private String shopName;
	/**type*/
	@Excel(name = "type", width = 15)
    @ApiModelProperty(value = "type")
	private Integer type;
	/**status*/
	@Excel(name = "status", width = 15)
    @ApiModelProperty(value = "status")
	private Integer status;

	private Integer sort;

	@Override
	public int compareTo(ShopRecommond o) {
		return o.getSort()-this.sort ;
	}
}
